
// Copyright (c) 2002 HTHK
package admin.options;

import com.ffpc.html.Options;

import java.util.ArrayList;
import java.sql.Connection;

import admin.system.func.*;

/**
 * A Class class.
 * <P>
 * @author HTHK
 */
public class FuncOptions
  extends Options
{

  /**
   * Constructor
   */
  public FuncOptions() {
      this.load();
  }

  @Override
protected ArrayList createOptions(Connection con)
    throws Exception
  {
      ArrayList options = new ArrayList();
      FuncBean func = FuncProcess.createBean();
      func.setFunc_id("");
      FuncBean[] funcs = FuncProcess.find(con,func);
      for (int i=0; i<funcs.length; i++)
      {
          Options.Option option
          = new Options.Option( funcs[i].getFunc_id(),
                                funcs[i].getFunc_id());
          options.add(i,option);
      }
      return options;
  }
}

